package com.imooc.security.user;

import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

/**
 * @author : cjf
 * @date : 2021-03-09 10:10
 **/
public interface UserRepository extends JpaSpecificationExecutor<User>, CrudRepository<User, Long> {


    List findByName(String name);

    User findByUsername(String username);
}
